import {get, post, del, put} from "@/apis/http/request";
import {BookingXiaohesuan} from "@/apis/model/booking/BookingXiaohesuanModel";

/**
* 得到列表
* @param params
*/
export const getBookingXiaohesuanList = (params: any) => get("/bookingXiaohesuan/list", params)

/**
* 得到分页列表
* @param params
*/
export const bookingXiaohesuanPage = (params: any) => post("/bookingXiaohesuan/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteBookingXiaohesuanById = (id: number) => del("/bookingXiaohesuan/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertBookingXiaohesuan = (param: BookingXiaohesuan) => post("/bookingXiaohesuan", param)

/**
* 更新数据
* @param param
*/
export const updateBookingXiaohesuan = (param: BookingXiaohesuan) => put("/bookingXiaohesuan", param)